﻿namespace WordCloudClient.Models.Entities
{
    /// <summary>
    /// 字典表
    /// </summary>
    [SugarTable("TB_Dictionary")]
    public class DictionaryEntity : BaseEntity
    {
        /// <summary>
        /// 字典名称
        /// </summary>
        [Required(ErrorMessage = "字典名称不能为空")]
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 字典编码(唯一)
        /// </summary>
        [Required(ErrorMessage = "字典编码不能为空")]
        public string Code { get; set; } = string.Empty;
        /// <summary>
        /// 字典值
        /// </summary>
        [Required(ErrorMessage = "字典值不能为空")]
        public string Value { get; set; } = string.Empty;
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = string.Empty;
    }
}
